const _import =
  process.env.NODE_ENV === 'production'
    ? file => () => import('@/views/modules/' + file + '.vue')
    : file => require('@/views/modules/' + file + '.vue').default

export default [
  {
    path: 'devired',
    component: _import('devired/calculate/calculate'),
    name: 'devired',
    meta: { title: '标签工厂', noContentBox: true, permission: 'front:page:devired' }
  },
  {
    path: 'devired/calculate',
    component: _import('devired/calculate/calculate-config'),
    name: 'devired-calculate',
    meta: { title: '标签工厂标签运算', permission: 'front:page:devired' }
  },
  {
    path: 'devired/sql',
    component: _import('devired/sql/sql-config'),
    name: 'devired-sql',
    meta: { title: '标签工厂SQL创建', permission: 'front:page:devired' }
  },
  {
    path: 'devired/logic',
    component: _import('devired/role/logic/logic'),
    name: 'devired-logic',
    meta: { title: '标签工厂逻辑分群', permission: 'front:page:devired' }
  },
  {
    path: 'devired/single',
    component: _import('devired/role/single/single'),
    name: 'devired-single',
    meta: { title: '标签工厂单一型指标', permission: 'front:page:devired' }
  },
  {
    path: 'devired/compose',
    component: _import('devired/role/compose/compose'),
    name: 'devired-compose',
    meta: { title: '标签工厂复合型指标', permission: 'front:page:devired' }
  },
  {
    path: 'devired/cross',
    component: _import('devired/role/cross/cross'),
    name: 'devired-cross',
    meta: { title: '标签工厂交叉型指标', permission: 'front:page:devired' }
  },
  {
    path: 'devired/rate',
    component: _import('devired/role/rate/rate'),
    name: 'devired-rate',
    meta: { title: '标签工厂比率型指标', permission: 'front:page:devired' }
  }
]
